import Layout from "@/layout";

import add from './modules/add'
import edit from './modules/edit'
import inorder from './modules/inorder'
import outorder from './modules/outorder'
import inventory from './modules/inventory'
import inquiry from './modules/inquiry'
import chart from './modules/chart'


export const constantRoutes = [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
    hidden: true
  },
  {
    path: "/login/forget",
    component: () => import("@/views/login/forget"),
    hidden: true
  },
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true
  },
  {
    path: "/test",
    component: () => import("@/views/test"),
    hidden: true
  },
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        name: "Dashboard",
        component: () => import("@/views/dashboard/index"),
        meta: { title: "控制台", icon: "dashboard" }
      }
    ]
  },
  inquiry,
  inorder,
  inventory,
  outorder,
  add,
  edit,
  chart,

  
  // 404
  { path: "*", redirect: "/404", hidden: true }
];

export default constantRoutes;
